<script setup lang="ts">
import test from './components/test.vue'
import {reactive, toRefs} from 'vue'
import {type person1} from '@/type/Person'
let person=reactive({
  name:"嘻嘻"
})
let personList:person1=[{
  id:'001',name:"嘿嘿",age:15
}]
let p=toRefs(person)

console.log(p.name,'lll');


function changeName()
{
  p.name.value='5555';
}
</script>

<template>
 <div>你好啊，{{person.name}}</div>
 <span>{{p.name }}</span>
 <button @click="changeName">点击更改姓名</button>
 <test :list="personList"></test>
</template>

<style scoped>


</style>
